// 表格列
let tc = [
    {
        showRowGroup: 'hide_def',
        headerName: '',
        checkboxSelection: true,
        headerCheckboxSelection: true,
        pinned: 'left',
        width: 50,
        resizable: false,
        filter: false,
        sortable: false,
        minWidth: 50,
        maxWidth: 50,
        lockPosition: 'left',
    },
    {
        headerName: '部门名称',
        field: 'departmentName',
        width: 150,
    },

    {
        headerName: '流转卡号',
        field: 'circulatCard',
        width: 150,
    },
    {
        headerName: '工序',
        field: 'process',
        width: 150,
    },
    {
        headerName: '设备编号',
        field: 'machineCode',
        width: 150,
    },
    {
        headerName: '扫描日期',
        field: 'pieceDate',
        width: 150,
    },
    {
        headerName: '员工工号',
        field: 'userCode',
        width: 150,
    },
    {
        headerName: '员工姓名',
        field: 'userName',
        width: 150,
    },
    {
        headerName: '克重',
        field: 'gramWeight',
        width: 150,
    },
    {
        headerName: '按克重计件',
        field: 'pieceRatioState',
        width: 150,
        cellRenderer: {
            template: `
            <el-checkbox v-model="val" :true-label="1" :false-label="0" disabled></el-checkbox>
            `,
            setup(props: any) {
                let val = ref()
                val.value = props.params.data.pieceRatioState
                return {
                    val
                }
            }
        }
    },
    {
        headerName: '单价(元/吨)',
        field: 'priceWage',
        width: 150,
    },
    {
        headerName: '按计件布种',
        field: 'pieceCoefficientState',
        width: 150,
        cellRenderer: {
            template: `
            <el-checkbox v-model="val" :true-label="1" :false-label="0" disabled></el-checkbox>
            `,
            setup(props: any) {
                let val = ref()
                val.value = props.params.data.pieceCoefficientState
                return {
                    val
                }
            }
        }
    },
    {
        headerName: '匹数',
        field: 'houseNum',
        width: 150,
    },
    {
        headerName: '重量',
        field: 'weight',
        width: 150,
    },
    {
        headerName: '计件比例',
        field: 'pieceRatio',
        width: 150,
    },
    {
        headerName: '计件系数',
        field: 'pieceCoefficient',
        width: 150,
    },
    {
        headerName: '计件工资',
        field: 'priceWage',
        width: 150,
    },
    {
        headerName: '布号',
        field: 'clothCode',
        width: 150,
    },
    {
        headerName: '品名',
        field: 'brandName',
        width: 150,
    },
    {
        headerName: '色号',
        field: 'colorCode',
        width: 150,
    },
    {
        headerName: '色称',
        field: 'colorName',
        width: 150,
    },
    {
        headerName: '门幅',
        field: 'width',
        width: 150,
    },
    {
        headerName: '客户名称',
        field: 'customName',
        width: 150,
    },
    {
        headerName: '创建人',
        field: 'createName',
        width: 150,
    },
    {
        headerName: '创建时间',
        field: 'createTime',
        width: 150,
    },
    {
        headerName: '修改人',
        field: 'updateName',
        width: 150,
    },
    {
        headerName: '修改时间',
        field: 'updateTime',
        width: 150,
    },

]
let tc2 = [
    {
        showRowGroup: 'hide_def',
        headerName: '',
        checkboxSelection: true,
        headerCheckboxSelection: true,
        pinned: 'left',
        width: 50,
        resizable: false,
        filter: false,
        sortable: false,
        minWidth: 50,
        maxWidth: 50,
        lockPosition: 'left',
    },
    {
        headerName: '车间',
        field: 'workshop',
        width: 150,
    },

    {
        headerName: '配方单号',
        field: 'circulatCard',
        width: 150,
    },
    {
        headerName: '计件日期',
        field: 'pieceDate',
        width: 150,
    },
    {
        headerName: '流转卡号',
        field: 'circulatCard',
        width: 150,
    },
    {
        headerName: '设备编号',
        field: 'machineCode',
        width: 150,
    },
    // {
    //     headerName: '班次',
    //     field: 'shift',
    //     width: 150,
    // },
    {
        headerName: '班次',
        field: 'workteam',
        width: 150,
    },
    {
        headerName: '员工工号',
        field: 'userCode',
        width: 150,
    },
    {
        headerName: '员工姓名',
        field: 'userName',
        width: 150,
    },
    {
        headerName: '总步骤数',
        field: 'stepTotalNum',
        width: 150,
    },
    {
        headerName: '步骤数',
        field: 'stepNum',
        width: 150,
    },
    {
        headerName: '单价',
        field: 'amount',
        width: 150,
    },
    {
        headerName: '客户名称',
        field: 'customName',
        width: 150,
    },
    {
        headerName: '布号',
        field: 'clothCode',
        width: 150,
    },
    {
        headerName: '品名',
        field: 'brandName',
        width: 150,
    },
    {
        headerName: '色号',
        field: 'colorCode',
        width: 150,
    },
    {
        headerName: '色称',
        field: 'colorName',
        width: 150,
    },
    {
        headerName: '匹数',
        field: 'horseNum',
        width: 150,
    },
    {
        headerName: '重量',
        field: 'weight',
        width: 150,
    },
    // {
    //     headerName: '创建人',
    //     field: 'createName',
    //     width: 150,
    // },
    // {
    //     headerName: '创建时间',
    //     field: 'createTime',
    //     width: 150,
    // },
    // {
    //     headerName: '修改人',
    //     field: 'updateName',
    //     width: 150,
    // },
    // {
    //     headerName: '修改时间',
    //     field: 'updateTime',
    //     width: 150,
    // },

]
let tc3 = [
    {
        showRowGroup: 'hide_def',
        headerName: '',
        checkboxSelection: true,
        headerCheckboxSelection: true,
        pinned: 'left',
        width: 50,
        resizable: false,
        filter: false,
        sortable: false,
        minWidth: 50,
        maxWidth: 50,
        lockPosition: 'left',
    },
    {
        headerName: '部门名称',
        field: 'departmentName',
        width: 150,
    },
    {
        headerName: '流转卡号',
        field: 'circulatCard',
        width: 150,
    },
    {
        headerName: '工序',
        field: 'process',
        width: 150,
    },
    {
        headerName: '设备编号',
        field: 'machineCode',
        width: 150,
    },
    {
        headerName: '验布日期',
        field: 'pieceDate',
        width: 150,
    },
    {
        headerName: '员工工号',
        field: 'userCode',
        width: 150,
    },
    {
        headerName: '员工姓名',
        field: 'userName',
        width: 150,
    },
    {
        headerName: '按克重',
        field: 'byGramWeight',
        width: 150,
        cellRenderer: {
            template: `
            <el-checkbox v-model="val" :true-label="1" :false-label="0" disabled></el-checkbox>
            `,
            setup(props: any) {
                let val = ref()
                val.value = props.params.data.byGramWeight
                return {
                    val
                }
            }
        }
    },
    {
        headerName: '克重',
        field: 'gramWeight',
        width: 150,
    },
    {
        headerName: '按计件布种',
        field: 'pieceClothState',
        width: 150,
        cellRenderer: {
            template: `
            <el-checkbox v-model="val" :true-label="1" :false-label="0" disabled></el-checkbox>
            `,
            setup(props: any) {
                let val = ref()
                val.value = props.params.data.pieceClothState
                return {
                    val
                }
            }
        }
    },
    {
        headerName: '单价(元/吨)',
        field: 'amount',
        width: 150,
    },
    {
        headerName: '匹数',
        field: 'houseNum',
        width: 150,
    },
    {
        headerName: '重量',
        field: 'weight',
        width: 150,
    },
    {
        headerName: '计件比例',
        field: 'pieceRatio',
        width: 150,
    },
    {
        headerName: '计件系数',
        field: 'pieceCoefficient',
        width: 150,
    },
    {
        headerName: '计件工资',
        field: 'priceWage',
        width: 150,
    },
    {
        headerName: '布号',
        field: 'clothCode',
        width: 150,
    },
    {
        headerName: '品名',
        field: 'brandName',
        width: 150,
    },
    {
        headerName: '色称',
        field: 'colorName',
        width: 150,
    },
    {
        headerName: '色号',
        field: 'colorCode',
        width: 150,
    },
    {
        headerName: '门幅',
        field: 'width',
        width: 150,
    },
    {
        headerName: '客户名称',
        field: 'customName',
        width: 150,
    },
    {
        headerName: '工种',
        field: 'postName',
        width: 150,
    },
    // {
    //     headerName: '创建人',
    //     field: 'createName',
    //     width: 150,
    // },
    // {
    //     headerName: '创建时间',
    //     field: 'createTime',
    //     width: 150,
    // },
    // {
    //     headerName: '修改人',
    //     field: 'updateName',
    //     width: 150,
    // },
    // {
    //     headerName: '修改时间',
    //     field: 'updateTime',
    //     width: 150,
    // },
]
let tc4 = [
    {
        showRowGroup: 'hide_def',
        headerName: '',
        checkboxSelection: true,
        headerCheckboxSelection: true,
        pinned: 'left',
        width: 50,
        resizable: false,
        filter: false,
        sortable: false,
        minWidth: 50,
        maxWidth: 50,
        lockPosition: 'left',
    },
    {
        headerName: '部门名称',
        field: 'departmentName',
        width: 150,
    },
    {
        headerName: '班次',
        field: 'workteam',
        width: 150,
    },
    {
        headerName: '计件日期',
        field: 'pieceDate',
        width: 150,
    },
    {
        headerName: '平均工资',
        field: 'avgWage',
        width: 150,
    },
    {
        headerName: '化工仓员工姓名',
        field: 'userName',
        width: 150,
    },
    {
        headerName: '工种',
        field: 'postName',
        width: 150,
    },
    {
        headerName: '计件系数',
        field: 'pieceRatio',
        width: 150,
    },
    {
        headerName: '化工仓计件工资',
        field: 'amount',
        width: 150,
    },
    // {
    //     headerName: '创建人',
    //     field: 'createName',
    //     width: 150,
    // },
    // {
    //     headerName: '创建时间',
    //     field: 'createTime',
    //     width: 150,
    // },
    // {
    //     headerName: '修改人',
    //     field: 'updateName',
    //     width: 150,
    // },
    // {
    //     headerName: '修改时间',
    //     field: 'updateTime',
    //     width: 150,
    // },
]
let tc5 = [
    {
        showRowGroup: 'hide_def',
        headerName: '',
        checkboxSelection: true,
        headerCheckboxSelection: true,
        pinned: 'left',
        width: 50,
        resizable: false,
        filter: false,
        sortable: false,
        minWidth: 50,
        maxWidth: 50,
        lockPosition: 'left',
    },
    {
        headerName: '送货司机',
        field: 'userName',
        width: 150,
    },
    {
        headerName: '出车日期',
        field: 'carOutDate',
        width: 150,
    },
    {
        headerName: '出车时间',
        field: 'carOutTime',
        width: 150,
    },
    {
        headerName: '回车时间',
        field: 'carBackTime',
        width: 150,
    },
    {
        headerName: '路线名称',
        field: 'routeName',
        width: 400,
    },
    {
        headerName: '计件工资',
        field: 'amount',
        width: 150,
    },
    // {
    //     headerName: '创建人',
    //     field: 'createName',
    //     width: 150,
    // },
    // {
    //     headerName: '创建时间',
    //     field: 'createTime',
    //     width: 150,
    // },
    // {
    //     headerName: '修改人',
    //     field: 'updateName',
    //     width: 150,
    // },
    // {
    //     headerName: '修改时间',
    //     field: 'updateTime',
    //     width: 150,
    // },
]
let tc6 = [
    {
        showRowGroup: 'hide_def',
        headerName: '',
        checkboxSelection: true,
        headerCheckboxSelection: true,
        pinned: 'left',
        width: 50,
        resizable: false,
        filter: false,
        sortable: false,
        minWidth: 50,
        maxWidth: 50,
        lockPosition: 'left',
    },
    {
        headerName: '部门名称',
        field: 'departmentName',
        width: 150,
    },
    {
        headerName: '员工工号',
        field: 'userCode',
        width: 150,
    },
    {
        headerName: '员工姓名',
        field: 'userName',
        width: 150,
    },
    {
        headerName: '扫描时间',
        field: 'pieceDate',
        width: 150,
    },
    {
        headerName: '流转卡号',
        field: 'circulatCard',
        width: 150,
    },
    {
        headerName: '克重',
        field: 'gramWeight',
        width: 150,
    },
    {
        headerName: '按吨计件',
        field: 'byTonPiece',
        width: 150,
        cellRenderer: {
            template: `
            <el-checkbox v-model="val" :true-label="1" :false-label="0" disabled></el-checkbox>
            `,
            setup(props: any) {
                let val = ref()
                val.value = props.params.data.byTonPiece
                return {
                    val
                }
            }
        }
    },
    {
        headerName: '按条计件',
        field: 'byTwigPiece',
        width: 150,
        cellRenderer: {
            template: `
            <el-checkbox v-model="val" :true-label="1" :false-label="0" disabled></el-checkbox>
            `,
            setup(props: any) {
                let val = ref()
                val.value = props.params.data.byTwigPiece
                return {
                    val
                }
            }
        }
    },
    {
        headerName: '匹数',
        field: 'horseNum',
        width: 150,
    },
    {
        headerName: '重量',
        field: 'weight',
        width: 150,
    },
    {
        headerName: '计件工资',
        field: 'amount',
        width: 150,
    },
    {
        headerName: '计件类别',
        field: 'pieceType',
        width: 150,
    },
    {
        headerName: '铁架号',
        field: 'shelveCode',
        width: 150,
    },
    {
        headerName: '出库类型',
        field: 'stockTypeName',
        width: 150,
    },
    {
        headerName: '布号',
        field: 'clothCode',
        width: 150,
    },
    {
        headerName: '品名',
        field: 'brandName',
        width: 150,
    },
    {
        headerName: '色号',
        field: 'colorCode',
        width: 150,
    },
    {
        headerName: '色称',
        field: 'colorName',
        width: 150,
    },
    {
        headerName: '门幅',
        field: 'width',
        width: 150,
    },
    {
        headerName: '客户名称',
        field: 'customName',
        width: 150,
    },
    // {
    //     headerName: '创建人',
    //     field: 'createName',
    //     width: 150,
    // },
    // {
    //     headerName: '创建时间',
    //     field: 'createTime',
    //     width: 150,
    // },
    // {
    //     headerName: '修改人',
    //     field: 'updateName',
    //     width: 150,
    // },
    // {
    //     headerName: '修改时间',
    //     field: 'updateTime',
    //     width: 150,
    // },
]
export {
    tc,
    tc2,
    tc3,
    tc4,
    tc5,
    tc6,
}
